﻿<u:Unity xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:sys="clr-namespace:System;assembly=mscorlib"
               xmlns:u="clr-namespace:UnityConfiguration;assembly=sonic.UnityConfiguration.Silverlight">
    
    <u:TypeAliases>
        <!-- Lifetime manager types -->
        <u:TypeAlias Alias="singleton" Type="Microsoft.Practices.Unity.ContainerControlledLifetimeManager, Microsoft.Practices.Unity.Silverlight, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <u:TypeAlias Alias="external"  Type="Microsoft.Practices.Unity.ExternallyControlledLifetimeManager, Microsoft.Practices.Unity.Silverlight, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

        <!-- User-defined type aliases -->
        <u:TypeAlias Alias="IAccountService" Type="sonic.Samples.Infrastructure.Services.IAccountService, Infrastructure, Version=1.0.0.0" />
    </u:TypeAliases>
    
    <u:Containers>
        <u:Container>
            <u:Types>
                <u:UnityType TypeName="IAccountService" MapToName="sonic.Samples.Infrastructure.Services.MockAccountService, Infrastructure, Version=1.0.0.0" >
                    <u:Lifetime TypeName="singleton" />
                </u:UnityType>
            </u:Types>
        </u:Container>
    </u:Containers>
</u:Unity>
    